<?php

/**
 * 站内消息详情
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 16/9/25
 * Time: 下午5:12
 */
class Detail extends MY_Api_Controller
{
    /**
     * 消息详情
     */
    public function index()
    {
        $uid = $this->uid;
        $mid = (int)$this->input->get_post('mid');


        $this->load->service('message/service_message_detail');
        $data = $this->service_message_detail->index($mid, $uid);


        unset($data['data']['ip']);


        $this->json_output($data['data'], $data['status']);
    }
}